//
//  APIComponentOptions.swift
//  MiU
//
//  Created by linhan on 15/11/23.
//  Copyright © 2015年 MiU. All rights reserved.
//

import Foundation
class SWRequestOptions: NSObject
{
    //是否需要验证登陆与否
    var authorize:Bool = true
    
    //返回已缓存的数据
    var returnCacheData:Bool = false
    
    //重试次数
    var retryTimes:Int = 0
    
    //数据格式
    var format:SWDataFormat = .JSON
    
    //检查返回结果错误码
    var resultCodeCheck:Bool = true
    
    //JSON读取选项
    var JSONReadingOptions:JSONSerialization.ReadingOptions = .allowFragments
    
}

enum SWDataFormat
{
    case JSON
    case XML
    case String
    case Binary
}
